$(document).ready(function () {

});
// 文化活动
var changeTitle= function(changeId,id1,id2,id3){
    var content = $(".content_area");
    $("#title"+changeId).css("background-color","#2746B4").css("color","white");
    $("#title"+id1).css("background-color","white").css("color","#A3A3A3");
    $("#title"+id2).css("background-color","white").css("color","#A3A3A3");
    $("#title"+id3).css("background-color","white").css("color","#A3A3A3");
    if(changeId ===1){
        $(".greater_area").animate({"opacity":"1"},500).removeClass('hide')
        $(".education_area").animate({"opacity":"0"},500).addClass('hide');
        $(".exercise_area").animate({"opacity":"0"},500).addClass('hide');
        $(".staff_area").animate({"opacity":"0"},500).addClass('hide');
    }
    if(changeId ===2){
        $(".greater_area").animate({"opacity":"0"},500).addClass('hide')
        $(".education_area").animate({"opacity":"1"},500).removeClass('hide');
        $(".exercise_area").animate({"opacity":"0"},500).addClass('hide');
        $(".staff_area").animate({"opacity":"0"},500).addClass('hide');
    }
    if(changeId ===3){
        $(".greater_area").animate({"opacity":"0"},500).addClass('hide')
        $(".education_area").animate({"opacity":"0"},500).addClass('hide');
        $(".exercise_area").animate({"opacity":"1"},500).removeClass('hide');
        $(".staff_area").animate({"opacity":"0"},500).addClass('hide');
    }
    if(changeId ===4){
        $(".greater_area").animate({"opacity":"0"},500).addClass('hide')
        $(".education_area").animate({"opacity":"0"},500).addClass('hide');
        $(".exercise_area").animate({"opacity":"0"},500).addClass('hide');
        $(".staff_area").animate({"opacity":"1"},500).removeClass('hide');
    }
};

// 文化活动END